﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
 
 <script type="text/javascript"> 
     function OnClick() {
         var startDate = new Date(2010, 0, 2);
         var endDate = new Date(2010, 0, 8);
         WebService.Service1.SampleStat(startDate, endDate, OnSuccess);
     }
 
     function OnSuccess(message) {
         alert(message);
     }
  </script>  
 
<head> 
    <title></title> 
</head> 
<body> 
<form> 
    <input onclick="OnClick();" id="lookupButton" type="button" value="Touch me..." /> 
</form> 
</body> 
 
<script src="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js " type="text/javascript"></script> 
<script src="Service1.asmx/js" type="text/javascript"></script> 
        
</html>